import React from 'react';
import { Modal } from 'antd';

const CustomNotification = ({ visible, title, onClose }) => {
  return (
    <Modal
      title="通知"
      visible={visible}
      onOk={onClose}
      onCancel={onClose}
      footer={null}
    >
      <p>{title}</p>
    </Modal>
  );
};

export default CustomNotification;
